package precision;

import mathtools.Matrix;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		FPObj number = new Ints(3);
		Matrix matrix = new Matrix(5,5,number);
		Matrix matrix2 = new Matrix(5,1,number);
		FPObj var = new Ints(0);
		FPObj one = new Ints(1);
		for(int i=0; i<matrix.getHeight();i++){
			var = new Ints(0);
			for(int j=0; j<matrix.getWidth();j++){
				matrix.setElement(i, j, var);
				var = var.add(one);
			}
		}
		for(int i=0; i<matrix2.getHeight();i++){
			for(int j=0; j<matrix2.getWidth();j++){
				matrix2.setElement(i, j, one);
			}
		}

		System.out.println(""+matrix.toString());
		matrix = matrix.multiplyMatrix(matrix2);
		System.out.println(""+matrix.toString());
		System.out.println(System.currentTimeMillis());

	}

}
